]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Don't fail auth prompt until user is out of retries
authorRay Strode <rstrode@redhat.com>
Wed, 28 Apr 2021 14:38:58 +0000 (10:38 -0400)
committerMarge Bot <marge-bot@gnome.org>
Wed, 28 Apr 2021 17:23:01 +0000 (17:23 +0000)
At the moment we set the state of the auth prompt to failed any
time the user fails an attempt. But verification is still going
on until the user exhausts all attempts, so that's wrong.

This commit changes it to only set the state to failed when the
user is out of tries.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1821>

js/gdm/authPrompt.js

index 0b3da4ecb2fce78f548bc59481a752c685302e73..4844b9ee0c7b7845e8526e55f2141f851d9adee0 100644 (file)
@@ -329,7 +329,9 @@ var AuthPrompt = GObject.registerClass({
 
         this.updateSensitivity(canRetry);
         this.setActorInDefaultButtonWell(null);
-        this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
+
+        if (!canRetry)
+            this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
 
         if (wasQueryingService)
             Util.wiggle(this._entry);